<template>
   <div>
         <!-- 好评 -->
        <Haoping :Haoping="Haoping">
            <div><div v-html="Haoping"></div></div>
        </Haoping>
        <!-- 热映电影 -->
        <Hot :reyingList="reyingList"></Hot>
  </div>
</template>

<script>
import Hot from "../../components/home/Hot.vue";
import axios from 'axios';
import Haoping from "../../components/home/Haoping.vue";

export default {
    name: 'Reying',
    data:function(){
        return {
            reyingList:[],
            Haoping:"",
        };
    },
    components:{
        Hot,
        Haoping,
    },
    mounted(){
        axios.get("/ajax/movieOnInfoList?token=&optimus_uuid=C2E81780155011ECB34C79BCA5547CBF56D804FD554E49BCB228EB987F285680&optimus_risk_level=71&optimus_code=10").then((res)=>{
            console.log(res);
            res.data.movieList.forEach(item => {
                item.img = item.img.replace("w.h","128.180");
            });
           this.reyingList = res.data.movieList;
        });
        axios.get("/ajax/topRatedMovies?token=&optimus_uuid=C2E81780155011ECB34C79BCA5547CBF56D804FD554E49BCB228EB987F285680&optimus_risk_level=71&optimus_code=10").then(res=>{
            console.log(res.data);
            this.Haoping = res.data;
        });
       
        
    }

};
</script>

<style>

</style>